package com.whj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whj.domain.entity.Menu;
import com.whj.domain.response.ResponseResult;
import com.whj.domain.vo.AddMenuVO;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author wanghaijun
 * @since 2023-05-30 14:46:28
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(Long userId);

    List<Menu> selectRouterMenuTreeByUserId(Long userId);

    ResponseResult listByStatus(String status, String menuName);

    ResponseResult addMenu(Menu menu);

    ResponseResult<Menu> menuById(Long id);

    ResponseResult updateMenu(Menu menu);

    ResponseResult deleteMenu(Long id);

    List<AddMenuVO>  treeSelect();

    List<String> selectMenuIdById(Long id);
}
